package com.sample.demo.action;



import java.io.IOException;
import java.io.OutputStream;

import com.webkit.web.ActionContext;
import com.webkit.web.ServletUtils;

public class ArrayAction extends AbstractStreamAction{

	public void execute(OutputStream output) {
		String data =("ARRAY:");
		
		for(int i=0;i<names.length;i++){
			data += (","+this.names[i]);
		}
		try {
			output.write(data.getBytes());
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		ServletUtils.printAll(ActionContext.getActionContext().getHttpServletRequest());
	}
}
